/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frmem_stat.h                                        */
/*  NOTE      =                                                    */
/*  DATE      = 2015/01/08 by yaohl                                */
/*******************************************************************/

#ifndef __FRMEM_STAT_H_
#define __FRMEM_STAT_H_

#include "frmem_cfg.h"

#if FR_MEM_STAT
    int  __fr_memstat_init(size_t s_size, const char *p_slab_name);
    void __fr_memstat_info(char **pp_outbuff);
    void __fr_memstat_info_all(char **pp_outbuff);
    unsigned int __fr_memstat_all_used(void);
    void __fr_memstat_destroy(void);

    void *__fr_memstat_malloc(size_t s_size);
    char *__fr_memstat_strdup(const char *p_src);
    void *__fr_memstat_memdup(const char *p_src, size_t s_size);
    void __fr_memstat_free(void *p_free_data);
#endif

#endif

